Fixed fallout from GtkScrollable patches.
authorTristan Van Berkom <tristan.van.berkom@gmail.com>
Sat, 23 Oct 2010 13:50:25 +0000 (22:50 +0900)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Sat, 23 Oct 2010 13:53:06 +0000 (22:53 +0900)
The scrollable patch removed set_scroll_adjustments (NULL, NULL) from
gtk_tree_view_init() which ensured the treeview would have adjustments
at all times, this patch adds set_v/hadjustment (NULL) to _init to ensure
the same thing (without it, there are crashes when trying to access the
adjustments notably from set_headers_visible() in gedit).

gtk/gtktreeview.c

index 412f8f3d9453bc1e29a390021cd175eda28ffea4..e849bb4141f945fe5a3945bb07cecaa442dbc930 100644 (file)
@@ -1335,6 +1335,9 @@ gtk_tree_view_init (GtkTreeView *tree_view)
 
   tree_view->priv->event_last_x = -10000;
   tree_view->priv->event_last_y = -10000;
+
+  gtk_tree_view_set_vadjustment (tree_view, NULL);
+  gtk_tree_view_set_hadjustment (tree_view, NULL);
 }
 
 \f